package org.battlestar.web;

import java.io.IOException;
import javax.servlet.http.*;
import java.util.logging.Logger;

@SuppressWarnings("serial")
public class Battle_StarServlet extends HttpServlet {
	private final static Logger log = Logger.getLogger(Battle_StarServlet.class.getName());
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		resp.setContentType("text/plain");
		resp.getWriter().println("This is Battle Star. Welcome onboard !! ");
		String country = req.getHeader("X-AppEngine-Country");
		String region = req.getHeader("X-AppEngine-Region");
		String city = req.getHeader("X-AppEngine-City");
		log.warning("You come from : " + country + " " + region + " " + city);
		log.info("You come from : " + country+ " " + region + " " + city);
		log.severe("You come from : " + country+ " " + region + " " + city);
		
	}
}
